/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module Tip.c - Header file for Tip functionality |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Include/tip.h $ 

**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/

#ifndef VSTIP_H
#define VSTIP_H

#include <define.h>

int inComputePercent (long lnPercent, char *szCalcAmt, long lnBaseAmt, int inFractionalSize);
int inGetTip (TRANSACTION_OBJECT *pobTran);
VS_BOOL fExcessiveTip(TRANSACTION_OBJECT *pobTran, long lnTipAmt);
int inGetTax (TRANSACTION_OBJECT *pobTran);
VS_BOOL fComputeOverage(TRANSACTION_OBJECT *pobTran);
int inGetCounterPayTip(TRANSACTION_OBJECT *pobTran);
int TIP_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);

#endif

